(function($,w,d){
	$(document).ready(function($) {
		function PROP(proportion,selector){
			this.proportion = proportion
			this.$el = $(selector)
			this.w2h()
		}
		PROP.prototype = {
			constructor:PROP,
			w2h:function(){
				var width = this.$el.width();
				var propHeight = width/this.proportion;
				this.$el.height(propHeight)
			}
		}

		var goodsImg = new PROP(1,'.goods-image')
	});
})(jQuery,window,document)